﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0, user-scalable=no" />
<link rel="shortcut icon" href="/Images/ico/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="/css/swiper.min.css" />
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<link type="text/css" rel="stylesheet" href="/layui/css/layui.css"  media="all">
<script type="text/javascript" src="/layui/layui.js" charset="utf-8"></script>
<script src="/js/jquery.min.js" type="text/javascript"></script>
<script src="/js/swiper.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/custom.js"></script>
<script type="text/javascript" src="/js/bottom-menu.js"></script>
<script type="text/javascript" src="/js/layui-post.js"></script>
<style>
.userlist .ico {height: 70px;}
.userlist .ico-order{background: url(/img/busi/b1.png) center center no-repeat;background-size: 60px;}
.userlist .ico-goods{background: url(/img/busi/b2.png) center center no-repeat;background-size: 60px;}
.userlist .ico-user{background: url(/img/busi/b3.png) center center no-repeat;background-size: 60px;}
.userlist .ico-money{background: url(/img/busi/b4.png) center center no-repeat;background-size: 60px;}
</style>
</head>
<body>
    <div class="ng-scope">
        <header class="ng-scope" id="gwc">
            <h4 class="title-order">
                <a class="title-top" href="javascript:window.history.back();"></a>
                <a class="title-center">商家中心</a>
                <a class="title-right" href="/index"></a>
            </h4>
        </header>
        <div style="clear:both;background:#E0E0E0;margin-top: 50px;" class="ng-scope"></div>
<!--        <ul class="headerlist ng-scope" style="display: flow-root;">-->
<!--            <li class="ng-binding">-->
<!--                累计收入 <span id="integral">0</span>-->
<!--            </li>-->
<!--            <li class="ng-binding">-->
<!--                累计退款 ￥<span id="paymoney">0.00</span>-->
<!--            </li>-->
<!--        </ul>-->
        <div style="clear:both;background:#E0E0E0;height:5px;" class="ng-scope"></div>
        <ul class="userlist ng-scope">
            <li>
                <a href="/busorder">
                    <p class="ico ico-order"></p>
                    <p>订单管理</p>
                </a>
            </li>
<!--            <li>-->
<!--                <a href="/busgoods">-->
<!--                    <p class="ico ico-goods"></p>-->
<!--                    <p>商品管理</p>-->
<!--                </a>-->
<!--            </li>-->
<!--            <li>-->
<!--                <a href="/bususer">-->
<!--                    <p class="ico ico-user"></p>-->
<!--                    <p>用户管理</p>-->
<!--                </a>-->
<!--            </li>-->
            <li>
                <a href="/busmoney">
                    <p class="ico ico-money"></p>
                    <p>资金明细</p>
                </a>
            </li>
        </ul>
    </div>
</body>
<script>
$.ajaxSetup({contentType: "application/json; charset=utf-8"});
var userInfo = $.parseJSON(sessionStorage.getItem("userInfo"));
layui.use(['layer','form','element','util'], function(){
    $.post("/cateringUser/selectOne",JSON.stringify({opendId:sessionStorage.getItem("opendId")}), function (res) {
        if(res.data != null){
            $("#integral").html(res.data.integral)
            $("#paymoney").html(res.data.payMoney)
            userInfo = res.data;
            if(!isEmpty(res.data.nickName)) $(".nickname").html(res.data.nickName)
            else $(".nickname").html("设置昵称")
            sessionStorage.setItem("userInfo", JSON.stringify(res.data));
        }
    })
})
</script>
</html>
